//
//  AboutUsViewController.swift
//  LongTermInsurance
//
//  Created by DYD on 2018/11/27.
//  Copyright © 2018 HeChao. All rights reserved.
//

import UIKit

class AboutUsViewController: BaseViewController {

    
    @IBOutlet weak var infoLabel: UILabel!
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        title = "关于我们"
        // Do any additional setup after loading the view.
        getData()
    }


    func getData() {
        let json = ["APPLB": "1"].convertToJsonString()
        let paramString = "<json>"+json+"</json>"
        
        NetworkingHandle.fetchNetworkData(method: "getAppAbout", paramString: paramString, success: {[weak self] (dict) in
            if let code = dict["ResultCode"] as? Int,code == 0 {
                let text = dict["ResultMessage"] as? String ?? ""
                self?.infoLabel.text = text
            } else {
                self?.infoLabel.text = ""
            }
        }) {
            print("")
        }
        
//        NetworkingHandle.fetchNetworkString(method: "getAppAbout", paramString: paramString, success: {[weak self] (str) in
//            self?.infoLabel.text = str
//        }) {
//            print("")
//        }
    }

}
